{template "header.html"}
<script>
    function {$js}(type, page) {
        var index = layer.load(2, { time: 10000 });
        $.ajax({type: "GET", url: "{$page_url}&type="+type+"&page="+page, dataType:"jsonp",
            success: function (data) {
                layer.close(index);
                if (data.code) {
                    $("#dr_module_comment_{$index.id}").html(data.msg);
                } else {
                    dr_tips(0, data.msg);
                }
            }
        });
    }
</script>
<section class="main-content-area">
    <div class="container">
        <!-- bradcame start -->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="greentect_bradcame">
                    <ul>
                        <li><a href="{SITE_URL}">首页</a></li>
                        {dr_catpos($catid, '', true, '<li> <a href="[url]">[name]</a> </li>')}
                        <li>评论</li>
                    </ul>
                </div>
            </div>
        </div>


        <div class="single-product-page-area">
            <div class="row">
                <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="single-product-image">
                        <div class="single-pro-main-image">
                           <img src="{dr_thumb($thumb[0][file], 300, 300)}" alt="商品"/>
                        </div>

                    </div>
                </div>
                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-7">
                    <div class="single-product-description">
                        <div class="pro-desc">
                            <h2>{$title}</h2>
                            <div class="review_forum">
                                <div class="rating-box">
                                    {dr_mall_star_level($avgsort)}
                                </div>
                                <p>
                                    <a href="{dr_comment_url($id)}"><i class="fa fa-comments"></i> {$comments}</a>
                                    <a href="javascript:;"><i class="fa fa-eye"></i> {dr_show_hits($id)}</a>
                                </p>
                            </div>

                            <div class="info-orther">
                                <p>销售总量: <span> {$volume} </span></p>
                                <p>商品所在地: <span class="in-stock">{dr_linkagepos('address', $city, ' ', '')}</span></p>
                            </div>
                            <div class="product-desc">
                                {$description}
                            </div>
                            <div class="product-price-group">
                                <span class="price regular-price">￥<span id="dr_sku_price">{if $price_sku}{dr_sku_price($price_sku, 2, ' ~ ')}{else}{number_format($price, 2)}{/if}</span>元</span>

                            </div>



                        </div>

                        <div class="form-action">

                            <div class="button-group">
                                <a style="margin-top: 10px;" href="javascript:dr_mall_favorite('{MOD_DIR}', '{$id}');" class="btn blue"> <i class="fa fa-heart-o"></i> 收藏商品 </a>
                                <a style="margin-top: 10px;" href="{$url}" class="btn green"> <i class="fa fa-search"></i>  查看商品详情 </a>
                            </div>

                        </div>

                    </div>
                </div>
            </div>
            <!-- product description tab start -->
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="product-more-info-tab">
                        <!-- Nav tabs -->
                        <ul class="more-info-tab nav nav-tabs">
                            <li class="active"><a href="#proTag" data-toggle="tab">商品评论（{$comments}）</a></li>
                        </ul>
                        <!-- Tab panes -->
                        <div class="product-tab-content tab-content">
                            <div class="tab-pane active" id="proDescription">
                                {dr_module_comment(MOD_DIR, $id)}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- product description tab end -->
        </div>

    </div>
</section>





{template "footer.html"}